package com.graduate.service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.service.IService;

import com.graduate.model.SysRole;
import com.graduate.util.PageInfo;

public interface ISysRoleService extends IService<SysRole>{

	public PageInfo getPageInfo(PageInfo pageInfo);
	public SysRole selectRole(Map<String, Object> map);
	
	/**
	 * @description ��ӽ�ɫ��Ϣ
	 * @param role
	 * @return
	 */
	public Integer saveRole(SysRole role);
	
	/**
	 * @description �޸Ľ�ɫ��Ϣ
	 * @param role
	 * @return
	 */
	public Integer updateRole(SysRole role);
	
	/**
	 * @description ɾ����ɫ��Ϣ
	 * @param id
	 * @return
	 */
	public Integer deleteRole(String id);
	
	/**
	 * �����ɫ�����û�
	 */
	public Integer saveRoleAndUser(SysRole role);
	public PageInfo getPageInfoRoleGrantUser(PageInfo pageInfo);
	
	/**
	 * ��ȡ��ɫ�б�
	 */
	public List<SysRole> getRoleList(SysRole role);
}
